package com.sicau.socialpracticesystem.common.myenum;

import com.sicau.socialpracticesystem.entity.po.College;

import java.util.ArrayList;
import java.util.List;

/**
 * 团队进度枚举
 *
 * @author ttxxi
 * @version : 1.0.0
 */
public enum TeamProgressEnum {

    CREATE(0, "新建"),
    INITIATE(1, "立项"),
    STARTED(2, "开始"),
    NEWS(3, "新闻稿"),
    ENDED(4, "结束");

    TeamProgressEnum(Integer id, String progress) {
        this.id = id;
        this.progress = progress;
    }

    /**
     * 进度类型
     */
    private final Integer id;

    /**
     * 进度描述
     */
    private final String progress;


    public Integer getId() {
        return id;
    }


    public String getProgress() {
        return progress;
    }

    public static TeamProgressEnum getEnum(Integer state) {
        TeamProgressEnum[] collegeEnums = values();
        for (TeamProgressEnum collegeEnum : collegeEnums) {
            if (collegeEnum.getId().equals(state)) {
                return collegeEnum;
            }
        }
        return null;
    }
}
